<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="mcfn" uri="mcfn" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
					<div id="bodyContent">
						<h1>Tasks</h1>
						<div class="errors"><html:errors/>${UserLogin.messageError}</div>
<c:choose>
<c:when test="${fn:length(TareaPreimplementaciones) eq 0}">At present you do not have pending tasks</c:when>
<c:otherwise>
						<html:form action="/FlowProcess" method="post">
						<html:hidden property="cveWorkPreimplementation" styleId="cveWorkPreimplementation"/>
						<table class="tabDatos">
							<thead>
								<tr>

									<th>Status</th>
									<th>Start date</th>
									<th>Activity</th>
									<th>End date</th>
									<th></th>
								</tr>
							</thead>

<c:forEach items="${TareaPreimplementaciones}" var="tp" >
							<tr>
								<td align="center"><c:choose><c:when test="${tp.image eq 1}"><img src='images/icoEnTiempo.gif' alt='En tiempo' /></c:when><c:when test="${tp.image eq 2}"><img src='images/icoPorVencer.gif' alt='En tiempo' /></c:when><c:when test="${tp.image eq 3}"><img src='images/icoVencido.gif' alt='En tiempo' /></c:when></c:choose></td>
								<td>${mcfn:formatDate(tp.tareaPreimplementation.fechaActiva,'dd/MM/yyyy') }</td>
                                                                <td width="460">${tp.tareaPreimplementation.tblTarea.descripcion} of Campaign ${tp.tareaPreimplementation.tblPreimplementacion.tblCampania.nombre} with the account ${tp.tareaPreimplementation.tblPreimplementacion.tblCampania.tblCuenta.nombre}</td>
								<td>${mcfn:formatDate(tp.tareaPreimplementation.fechaLimite,'dd/MM/yyyy') }</td>
								<td>go to the task <html:image src="images/btnIrAlerta.gif" alt="ir a la tarea" onclick="document.getElementById( 'cveWorkPreimplementation' ).value=${tp.tareaPreimplementation.cveTareaPreimplementacion}; return true ;"/></td>

							</tr>
</c:forEach>

						</table>
						</html:form>
						<span class='contentBtn'> <img src='images/icoEnTiempo.gif' alt='En tiempo' /> ON TIME &nbsp; &nbsp; <img src='images/icoPorVencer.gif' alt='Por Vencer' /> EXPIRING &nbsp; &nbsp; <img src='images/icoVencido.gif' alt='Vencido' /> EXPIRED</span>

</c:otherwise>
</c:choose>
					</div>
					<div id="footContent"></div>